tools/babl-verify: print the substeps of chosen paths
authorØyvind Kolås <pippin@gimp.org>
Thu, 15 Dec 2016 23:16:42 +0000 (00:16 +0100)
committerØyvind Kolås <pippin@gimp.org>
Thu, 15 Dec 2016 23:16:42 +0000 (00:16 +0100)
tools/babl-verify.c

index 83b1620f4ac2d81e84cce74b6f650a84eb97681e..5a1a44717b98686921c3728886bffb511a846352 100644 (file)
@@ -32,10 +32,15 @@ int main (int argc, char **argv)
   {
     case BABL_FISH:
       fprintf (stderr, "%s\n", babl_get_name (fish));
-            break;
+      break;
     case BABL_FISH_PATH:
       fprintf (stderr, "chosen %s to %s: steps: %i error: %f cost: %f\n", argv[1], argv[2], fish->fish_path.conversion_list->count, fish->fish.error, fish->fish_path.cost);
-            break;
+        for (int i = 0; i < fish->fish_path.conversion_list->count; i++)
+          {
+            fprintf (stderr, "\t%s\n",
+                      babl_get_name(fish->fish_path.conversion_list->items[i]  ));
+          }
+      break;
   }